/**
 * Created by 10191042 on 2019-11-19.
 */
function MyDictionary(){
    var dict = {};
    MyDictionary.prototype.put = function(key,value) {
        if(this.isContain(key)){
            delete dict[key];
        }
        dict[key] = value;
    }

    MyDictionary.prototype.isContain =  function(key) {
        if(dict[key] == undefined || dict[key] == null)
            return false;
        return true;
    }

    MyDictionary.prototype.remove = function (key) {
        if(this.isContain(key)){
            delete dict[key];
        }
    }

    MyDictionary.prototype.get = function (key,defaultValue) {
        if(this.isContain(key))
            return dict[key];
        if(defaultValue != undefined)
            return defaultValue;
        return "";
    }
}

var dict = new MyDictionary();

